package com.kinglone.back.sysmenu.service;

import com.kinglone.back.sysmenu.model.SysMenu;
import com.kinglone.common.node.ZTreeNode;
import com.kinglone.common.utils.ResultMsg;

import java.util.List;
import java.util.Map;

public interface SysMenuService  {

	/**
	 * 根据top菜单获取二级菜单
	 * @param topMenu
	 * @return
	 */
	List<SysMenu> getMenuByTopMenu(String topMenu);

    List<SysMenu> list(Map<String, Object> map);

	int getTotal(Map<String, Object> map);

    ResultMsg addMenu(SysMenu sysMenu) throws  Exception;

	void delMenu(String id);

    List<Long> getMenuIdsByRoleId(Integer roleId);

	List<ZTreeNode> menuTreeList();

	List<ZTreeNode> menuTreeListByMenuIds(List<Long> menuIds);

	List<String> getPermissionByRoleId(String roleId);
}
